<template>
    <div class="DetailList">
        <!-- <i class="iconfont icon-youjiantou1"></i><span class="chengren">成人票</span>
        <p class="two"><i class="iconfont icon-youjiantou1"></i><span class="chengren">成人三景联票</span></p>
        <p class="three"><i class="iconfont icon-youjiantou1"></i><span class="chengren">成人三景联票+连锁店销售</span></p> -->
        <div>
            <div class="item" v-for="(item, index) of list" :key="index">
                <div class="item-title border-bottom">
                    <span class="item-title-icon"></span>
                    {{item.title}}
                    <ul class="two">
                        <li v-for="(ele,i) in item.children" :key="i"><span class="item-title-icon"></span>{{ele.title}}
                            <ul class="three">
                                <li v-for="(e,is) in ele.children" :key="is"> <span class="item-title-icon"></span>{{e.title}}</li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</template>




<script>
export default {
  data() {
    return {
      list: [
        {
          title: "成人票",
          children: [
            {
              title: "成人三馆联票",
              children: [
                { title: "成人三馆联票 - 某一连锁店销售" },
                { title: "成人五馆联票 - 某一超市销售" }
              ]
            },
            {
              title: "成人五馆联票"
            }
          ]
        },
        {
          title: "学生票"
        },
        {
          title: "儿童票"
        },
        {
          title: "特惠票"
        }
      ]
    };
  },
  created() {
    // console.log(this.list);
  }
};
</script>

<style lang="stylus" scoped>
.DetailList {
    width: 100%;
    height: 4rem;

    // margin-top: 9rem;
    // background-color: red;
    .icon-youjiantou1 {
        width: 0.8rem;
        height: 0.8rem;
        border-radius: 50%;
        display: inline-block;
        text-align: center;
        line-height: 0.8rem;
        background-color: #7cccce;
        margin-left: 0.4rem;
        color: #ffffff;
    }
}

.chengren {
    font-size: 0.5rem;
    margin-left: 0.4rem;
}

.two {
    margin-left: 0.3rem;
    margin-top: 0.2rem;
}

.three {
    margin-left: 0.3rem;
    margin-top: 0.2rem;
}

.item-title-icon {
    position: relative;
    left: 0.06rem;
    top: 0.06rem;
    display: inline-block;
    width: 0.36rem;
    height: 0.36rem;
    background: url('http://s.qunarzz.com/piao/image/touch/sight/detail.png') 0 -0.45rem no-repeat; // s.qunarzz.com/piao/image/touch/sight/detail.png) 0 -.45rem no-repeat
    margin-right: 0.1rem;
    background-size: 0.4rem 3rem;
}

.item-title {
    line-height: 0.8rem;
    font-size: 0.32rem;
    padding: 0 0.2rem;
}
</style>
